<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{$sets->keyword}" />
<meta name="description" content="{$sets->description}" />
<title>三原县信息网 -- 信息列表</title>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/category.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('div.search input.k').focus(function() {
            if($(this).val() == '输入关键词...') 
                $(this).css('color', '#333').val('');    
        }).blur(function() {
            if($(this).val() == '')
                $(this).css('color', '#999').val('输入关键词...');    
        });
        $('#list ul li').hover(function() {
            $(this).css('background', '#EEF2FB');
        },function() {
            $(this).css('background', '#fff');
        });
        $('#list ul li.stick').hover(function() {
            $(this).css('background', '#EEF2FB');
        },function() {
            $(this).css('background', '#FFF5F5');
        });
        
        //搜索验证
        $('form.search1').submit(function() {
            if($('input.k').val() == '输入关键词...') {
                alert('请输入搜索内容!');
                return false;
            } else if($('input.k').val().length < 2) {
                alert('至少输入两位数的搜索内容!');
                return false;
            }
        });
    });
    
</script>
</head>

<body>
<include file="./Tpl/Public/header.html"/>
<div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt 
<if condition="$navname['pname']">
    <a href="{:U('/Category/index','id='.$navname['pid'])}">{$navname.pname}</a> &gt; {$navname.cname}
<else />
    {$navname.cname}    
</if>
</div>
<div id="attr">
    <empty name="navname.pname">
    <div class="de">
        <h4>栏目分类</h4>
        <ul>
            <li><a href="###" class="select">不限</a></li>
            <volist name="childnav" id="value">
                <li><a href="{:U('/Category/index','id='.$value['id'])}">{$value.name}</a></li>
            </volist>
        </ul>
    </div>
    </empty>
    <volist name="myattr" id="value">
    <div class="de">
        <h4>{$value.name}</h4>
        <ul>
            <if condition="$_GET[$value['nickname']]">
            <li><a href="{:unsetParam($value['nickname'])}">不限</a></li>
            <else />
            <li><a href="{:unsetParam($value.nickname)}" class="select">不限</a></li>
            </if>
            <volist name="value.details" id="v">
                <if condition="$_GET[$value['nickname']] eq $v">
                <li><a href="{:getUrl($value['nickname'].'/'.$v)}" class="select">{$v}</a></li>
                <else />
                <li><a href="{:getUrl($value['nickname'].'/'.$v)}">{$v}</a></li>
                </if>
            </volist>
        </ul>
    </div>
    </volist>
    <div class="search">
        <form method="get" action="__ROOT__/Search/index/" class="search1">
            <input type="hidden" name="catid" value="{$Think.get.id}" />
            <input type="hidden" name="type" value="1" />
            <input type="text" name="keyword" value="输入关键词..." class="text k"/>
            <input type="submit" value="在本类搜索" class="sub"/>
        </form>
    </div>
</div>
<div id="list">
    <h2>信息列表</h2>
    <p class="count">共有信息 <span style="color:red;">{$count}</span> 条      <a href="{:U('/Post/input/','id='.$navname['cid'])}" target="_blank">马上发布一条{$navname.cname}的信息</a></p>
    <ul>
        <volist name="allinfo" id="value">
        <if condition="$value['stick'] eq 0">
        <li><em>{$value.addtime|date='Y-m-d H:i:s',###}</em><a href="{:U('/Info/details/','id='.$value['id'])}">{$value.title}</a></li>
        <else />
        <li class="stick"><em>{$value.addtime|date='Y-m-d H:i:s',###}</em><a href="{:U('/Info/details/','id='.$value['id'])}">{$value.title}</a><img src="__ROOT__/Tpl/Public/images/stick.jpg" /></li>
        </if>
        
        </volist>
    </ul>
    <div id="page" style="margin-bottom:30px;margin-top:-15px;">{$page}</div>
</div>




<include file="./Tpl/Public/footer.html"/>
</body>
</html>